<?php
/**
 * SimpleText Portlet - Common
 *
 * @author Steen Rabol <steen.rabol@gmail.com>
 * @link http://www.pradoportal.dk/
 * @copyright Copyright &copy; 2006,2007,2008 Steen Rabol
 * @license http://www.pradoportal.dk
 * @version $Id: SimpleTextPortletCommon.php 313 2008-11-20 17:04:18Z steen.rabol@gmail.com $
 * @package Pradoportal.Portlets.SimpleTextPortlet.Common
 *
 */

/**
 * SimpleText Portlet - Common class
 *
 * This is the common part of the portlet
 * @package Pradoportal.Portlets.SimpleTextPortlet.Common
 */

Prado::using('Application.Common.PortalPortletCommon');
class SimpleTextPortletCommon extends PortalPortletCommon
{

	public static function getPortletName()
	{
		return Prado::localize('Simple text');
	}

	public static function GetCssClasses()
	{
		return array(".simpletextportlet" =>"");
	}

	public static function getCustomProperties()
	{
		$prop	= array();
		$prop[] = array("type" => "colorpick", "length" => 8, "name" => "textcolor", "title" => Prado::localize('Text color'));
		$prop[] = array("type" => "colorpick", "length" => 8, "name" => "backgroundcolor", "title" => Prado::localize('Background color'));

		$prop[] = array("type" => "colorpick", "length" => 8, "name" => "bordercolor", "title" => Prado::localize('Border color'));
		$prop[] = array("type" => "number", "length" => 8, "name" => "bordersize", "title" => Prado::localize('Border size'));
		$values = array();
		$values[] = array("name" => "dotted", "value" => "dotted");
		$values[] = array("name" => "dashed", "value" => "dashed");
		$values[] = array("name" => "solid", "value" => "solid");
		$values[] = array("name" => "double", "value" => "double");
		$values[] = array("name" => "groove", "value" => "groove");
		$values[] = array("name" => "ridge", "value" => "ridge");
		$values[] = array("name" => "inset", "value" => "inset");
		$values[] = array("name" => "outset", "value" => "outset");

		$prop[] = array("type" => "droplist", "values" => $values, "name" => "bordertype", "title" => Prado::localize('Border type'));

		return $prop;
	}

}

?>